package com.rc.saas.tenant.service.order;

import com.github.pagehelper.PageInfo;
import com.rc.saas.tenant.base.BaseService;
import com.rc.saas.tenant.mapper.order.OrderDiscountRecordMapper;
import com.rc.saas.tenant.model.order.OrderDiscountRecord;
import com.rc.saas.tenant.model.order.OrderDiscountRecordExample;
import com.rc.saas.tenant.search.order.OrderDiscountRecordSearch;
import com.rc.saas.tenant.vo.order.ExportOrderDiscountRecordVo;
import com.rc.saas.tenant.vo.order.OrderDiscountRecordVo;

import java.util.List;

/**
 * Create by Yang on 2021/6/24
 */
public interface OrderDiscountRecordService extends BaseService<Long, OrderDiscountRecord, OrderDiscountRecordExample, OrderDiscountRecordMapper> {

    int deleteBatchOrderDiscountRecord(Integer count);

    /**
     * 优惠列表信息分页查询
     * @param search
     * @return
     */
    PageInfo<OrderDiscountRecordVo> searchByCondition(OrderDiscountRecordSearch search);

    /**
     * 导出优惠列表信息
     * @param search
     * @return
     */
    List<ExportOrderDiscountRecordVo> exportOrderDiscountRecord(OrderDiscountRecordSearch search);

    /**
     * 逻辑删除优惠信息
     * @param orderDiscountId
     * @param loginName
     */
    void delOrderDiscountRecord(Long orderDiscountId, String loginName);

}
